package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:21
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysRoleResourceRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private String relateCode;

    /**
     * Attribute relateCode Be Seted Falg
     */
    private boolean relateCodeSetted = false;

    /**
    * Attribute relateCode is Null Falg
    */
    private boolean relateCodeNull = false;
    private String relateName;

    /**
     * Attribute relateName Be Seted Falg
     */
    private boolean relateNameSetted = false;

    /**
    * Attribute relateName is Null Falg
    */
    private boolean relateNameNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private long sysResourceId;

    /**
     * Attribute sysResourceId Be Seted Falg
     */
    private boolean sysResourceIdSetted = false;

    /**
    * Attribute sysResourceId is Null Falg
    */
    private boolean sysResourceIdNull = false;
    private long sysRoleId;

    /**
     * Attribute sysRoleId Be Seted Falg
     */
    private boolean sysRoleIdSetted = false;

    /**
    * Attribute sysRoleId is Null Falg
    */
    private boolean sysRoleIdNull = false;
    private String sysRoleName;

    /**
     * Attribute sysRoleName Be Seted Falg
     */
    private boolean sysRoleNameSetted = false;

    /**
    * Attribute sysRoleName is Null Falg
    */
    private boolean sysRoleNameNull = false;
    private String sysResourceTitleKey;

    /**
     * Attribute sysResourceTitleKey Be Seted Falg
     */
    private boolean sysResourceTitleKeySetted = false;

    /**
    * Attribute sysResourceTitleKey is Null Falg
    */
    private boolean sysResourceTitleKeyNull = false;

    public SysRoleResourceRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get relateCode
         *
         * @return String
         */
    final public String getRelateCode() {
        if (isRelateCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(relateCode);
        }
    }

    /**
     * Set relateCode
     *
     * @param String
     */
    final public void setRelateCode(String relateCode) {
        this.relateCode = StringUtils.trim(relateCode);

        this.relateCodeSetted = true;

        this.setRelateCodeNull(this.relateCode == null);
    }

    /**
     * Get relateCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelateCodeSetted() {
        return this.relateCodeSetted;
    }

    /**
     * Set relateCode Null
     *
     */
    final public void setRelateCodeNull() {
        this.relateCodeNull = true;
    }

    final public void setRelateCodeNull(boolean aNullFlag) {
        this.relateCodeNull = aNullFlag;
    }

    final public boolean isRelateCodeNull() {
        return this.relateCodeNull;
    }

    /**
         * Get relateName
         *
         * @return String
         */
    final public String getRelateName() {
        if (isRelateNameNull()) {
            return null;
        } else {
            return StringUtils.trim(relateName);
        }
    }

    /**
     * Set relateName
     *
     * @param String
     */
    final public void setRelateName(String relateName) {
        this.relateName = StringUtils.trim(relateName);

        this.relateNameSetted = true;

        this.setRelateNameNull(this.relateName == null);
    }

    /**
     * Get relateName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelateNameSetted() {
        return this.relateNameSetted;
    }

    /**
     * Set relateName Null
     *
     */
    final public void setRelateNameNull() {
        this.relateNameNull = true;
    }

    final public void setRelateNameNull(boolean aNullFlag) {
        this.relateNameNull = aNullFlag;
    }

    final public boolean isRelateNameNull() {
        return this.relateNameNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get sysResourceId
         *
         * @return long
         */
    final public long getSysResourceId() {
        return sysResourceId;
    }

    /**
     * Set sysResourceId
     *
     * @param long
     */
    final public void setSysResourceId(long sysResourceId) {
        this.sysResourceId = sysResourceId;

        this.sysResourceIdSetted = true;

        this.setSysResourceIdNull(false);
    }

    /**
     * Get sysResourceId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysResourceIdSetted() {
        return this.sysResourceIdSetted;
    }

    /**
     * Set sysResourceId Null
     *
     */
    final public void setSysResourceIdNull() {
        this.sysResourceIdNull = true;
    }

    final public void setSysResourceIdNull(boolean aNullFlag) {
        this.sysResourceIdNull = aNullFlag;
    }

    final public boolean isSysResourceIdNull() {
        return this.sysResourceIdNull;
    }

    /**
         * Get sysRoleId
         *
         * @return long
         */
    final public long getSysRoleId() {
        return sysRoleId;
    }

    /**
     * Set sysRoleId
     *
     * @param long
     */
    final public void setSysRoleId(long sysRoleId) {
        this.sysRoleId = sysRoleId;

        this.sysRoleIdSetted = true;

        this.setSysRoleIdNull(false);
    }

    /**
     * Get sysRoleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleIdSetted() {
        return this.sysRoleIdSetted;
    }

    /**
     * Set sysRoleId Null
     *
     */
    final public void setSysRoleIdNull() {
        this.sysRoleIdNull = true;
    }

    final public void setSysRoleIdNull(boolean aNullFlag) {
        this.sysRoleIdNull = aNullFlag;
    }

    final public boolean isSysRoleIdNull() {
        return this.sysRoleIdNull;
    }

    /**
         * Get sysRoleName
         *
         * @return String
         */
    final public String getSysRoleName() {
        if (isSysRoleNameNull()) {
            return null;
        } else {
            return StringUtils.trim(sysRoleName);
        }
    }

    /**
     * Set sysRoleName
     *
     * @param String
     */
    final public void setSysRoleName(String sysRoleName) {
        this.sysRoleName = StringUtils.trim(sysRoleName);

        this.sysRoleNameSetted = true;

        this.setSysRoleNameNull(this.sysRoleName == null);
    }

    /**
     * Get sysRoleName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleNameSetted() {
        return this.sysRoleNameSetted;
    }

    /**
     * Set sysRoleName Null
     *
     */
    final public void setSysRoleNameNull() {
        this.sysRoleNameNull = true;
    }

    final public void setSysRoleNameNull(boolean aNullFlag) {
        this.sysRoleNameNull = aNullFlag;
    }

    final public boolean isSysRoleNameNull() {
        return this.sysRoleNameNull;
    }

    /**
         * Get sysResourceTitleKey
         *
         * @return String
         */
    final public String getSysResourceTitleKey() {
        if (isSysResourceTitleKeyNull()) {
            return null;
        } else {
            return StringUtils.trim(sysResourceTitleKey);
        }
    }

    /**
     * Set sysResourceTitleKey
     *
     * @param String
     */
    final public void setSysResourceTitleKey(String sysResourceTitleKey) {
        this.sysResourceTitleKey = StringUtils.trim(sysResourceTitleKey);

        this.sysResourceTitleKeySetted = true;

        this.setSysResourceTitleKeyNull(this.sysResourceTitleKey == null);
    }

    /**
     * Get sysResourceTitleKey Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysResourceTitleKeySetted() {
        return this.sysResourceTitleKeySetted;
    }

    /**
     * Set sysResourceTitleKey Null
     *
     */
    final public void setSysResourceTitleKeyNull() {
        this.sysResourceTitleKeyNull = true;
    }

    final public void setSysResourceTitleKeyNull(boolean aNullFlag) {
        this.sysResourceTitleKeyNull = aNullFlag;
    }

    final public boolean isSysResourceTitleKeyNull() {
        return this.sysResourceTitleKeyNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysRoleResourceRelate) == false) {
            return false;
        }

        SysRoleResourceRelate other = (SysRoleResourceRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("relateCode=");
        buffer.append(this.relateCode);

        buffer.append("relateName=");
        buffer.append(this.relateName);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("sysResourceId=");
        buffer.append(this.sysResourceId);

        buffer.append("sysRoleId=");
        buffer.append(this.sysRoleId);

        buffer.append("sysResourceTitleKey=");
        buffer.append(this.sysResourceTitleKey);

        buffer.append("sysRoleName=");
        buffer.append(this.sysRoleName);

        buffer.append("]");

        return buffer.toString();
    }
}
